package cn.lzj.ymcc.feign;


import cn.lzj.ymcc.doc.CourseDoc;
import cn.lzj.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-search",fallbackFactory = CourseESFeignClientFallbackFactory.class)
public interface CourseESFeignClient {

    //保存login
    @RequestMapping(value="/course/save",method= RequestMethod.POST)
    JSONResult savees(@RequestBody CourseDoc courseDoc);
    //保存login
    @RequestMapping(value = "/course/offLineCourse/{id}",method = RequestMethod.DELETE)
    JSONResult offLineCourse(@PathVariable("id")Long id);

}
